package com.rp.files.service;

import org.springframework.web.multipart.MultipartFile;

public interface UploadService {

    /**
     * fast dfs
     * @param file
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String uploadFastDfs(MultipartFile file,String fileExtName) throws Exception;

    /**
     * 阿里云 oss
     * @param file
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String uploadOSS(MultipartFile file,String userId,String fileExtName) throws Exception;
}
